<?php
$this->pageTitle=Yii::app()->name . ' - 登录';
?>
<div id='loginForm'>
	<?php $this->beginWidget('Block', array(
		'title' => '系统登录',
		'htmlOptions' => array(
			'class' => 'big',
		),
		'links' => array(
			'返回站点' => array(
				'url' => 'javascript:void(0)',
			),
		),
	))?>
		<?php $form = $this->beginWidget('CActiveForm', array(
			'enableAjaxValidation' => true,
			'id' => 'login-form',
		))?>
		<div class='mgt10'>
			<div class='row'>
				<?php $this->widget('FlashBox')?>
			</div>
			<div class='row'>
				<label>用户名：</label>
				<div><?php echo $form->textField($model, 'username')?>
				<?php echo $form->error($model, 'username')?>
				</div>
			</div>
			<div class='row'>
				<label>密码：</label>
				<div><?php echo $form->passwordField($model, 'password')?>
				<?php echo $form->error($model, 'password')?>
				</div>
			</div>
			<div class='row'>
				<label>登录类型：</label>
				<span><?php echo $form->dropDownList($model, 'modelName',array('AdminUserIdentity'=>'管理员','GroupUserIdentity'=>'工作人员'))?>
				<?php echo $form->error($model, 'modelName')?>
				</span>
			</div>
			<div align=left class='mgb10 row'>
				<?php echo CHtml::submitButton(CONSTANT::OP_LOGIN, array(
					'class' => 'submit',
				))?>
				<input type='checkbox' checked='checked'/><label>下次自动登录</label>
			</div>
		</div>
		<?php $this->endWidget()?>
	<?php $this->endWidget()?>
</div>